package com.java.multipledatasource.spring.map;

import java.util.HashMap;
import java.util.Map;

import static java.lang.System.*;

/**
 * @author hu
 * @version 1.0
 * @date 2020/12/25 0025 下午 11:34
 * @description
 */
public class MapTest {
    public static void main(String[] args) {
        Map<String, MyInterface> map = new HashMap<>(16);
        map.put("11", () -> {
            out.println("1111");
        });
        map.put("22", () -> {
            out.println("222");
        });

        map.get("11");
        map.get("22");
    }
}
